package org.dromara.hm.domain.vo.saleOrder;

import lombok.Data;
import org.dromara.common.translation.annotation.Translation;
import org.dromara.common.translation.constant.TransConstant;

import java.io.Serializable;
import java.math.BigDecimal;

/**
 * 订单项视图对象
 *
 * @author Hzy
 * @date 2025-07-24
 */
@Data
public class OrderItemVo implements Serializable
{
    private static final long serialVersionUID = 1L;

    private Long id;
    private Long productId;
    @Translation(type = TransConstant.PRODUCT_ID_TO_NAME, mapper = "productId")
    private String productName;
    private String productType; // 例如 "主产品", "赠品"
    private BigDecimal price; // 单价
    private BigDecimal quantity; // 数量
    private BigDecimal pickedUpQuantity; // 已提货数量
    private BigDecimal remainingQuantity; // 剩余数量
    private BigDecimal totalAmount; // 总金额
}

